package com.xxx.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 * @TableName guest_book_table
 */
@TableName(value ="guest_book_table")
@Data
public class GuestBook implements Serializable {
    /**
     * 留言id
     */
    @TableId(value = "message_id")
    private Long messageId;

    /**
     * 留言内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 留言时间
     */
    @TableField(value = "create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 发表用户id
     */
    @TableField(value = "customer_id")
    private Long customerId;

    @TableField(value = "delete_flag")
    private int deleteFlag;

}